 module queue_methods;
        byte qu [$] ;
        
        initial
        begin
            qu.push_front(2);
            qu.push_front(12);
            qu.push_front(22);
            qu.push_back(11);
            qu.push_back(99);

            $display(" %d ",qu.size() );
            $display("  %d  ",qu );
            
            $display(" %d ",qu.pop_front() );
            $display(" %d ",qu.pop_back() );
            $display("  %d  ",qu );

            qu.delete(2); // index range of the queues must be [0:size-1]
                          // out of index gives a fatal error in execution
            $display(" %d ",qu.size() );
            $display("  %d  ",qu );
        end
 endmodule
